package com.example.test.chapter13.intenttab;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class IntentTab extends TabActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		TabHost host = getTabHost();
		host.addTab(host.newTabSpec("one").setIndicator("Go to goole")
				.setContent(new Intent(this, GoolgeBrowser.class)));
		host.addTab(host.newTabSpec("two").setIndicator("Go to vnexpress")
				.setContent(new Intent(this, VnexpressBrowser.class)));

	}
}
